/*
 *  * TimerAE.h
 *   *
 *    *  Created on: Feb 4, 2010
 *     *      Author: root
 *      */

#ifndef TIMERAE_H_
#define TIMERAE_H_

/*****************************************************************************/
/*                                                                           */
/* Andreas Enge                                                              */
/*                                                                           */
/* functions for measuring the passing time                                  */
/*                                                                           */
/* Last changes: December 18, 2002                                           */
/*                                                                           */
/*****************************************************************************/
#include <sys/times.h>

typedef struct {
     struct tms time_old, time_new;
        double     elapsed;
} timerAE_struct;
typedef timerAE_struct timerAE [1];

#if defined (__cplusplus)
extern "C" {
#endif
  extern void timerAE_start (timerAE clock);
  extern void timerAE_run (timerAE clock);
  extern void timerAE_stop (timerAE clock);
  extern double timerAE_get (timerAE clock);
#if defined (__cplusplus)
}
#endif
#endif /* TIMERAE_H_ */
